<?  /*print_r($view_dados_lista);exit();

    $oi =  array_combine($view_restante_cpf, $view_restante_nome);
    print_r($oi);exit();*/

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    
<head>
    <? include "/../includes/head.inc" ?>  

    </head>
      
    <body>
    <!-- Carragando animação -->
    <div id="qLoverl"></div>
    <div id="qLbar"></div>
        
    <div id="header">

        <? include "/../includes/cabecalho.inc" ?>  

    </div><!-- Fim #header -->

    <div id="wrapper">

        <!--Responsive navigation button-->  
        <div class="resBtn">
            <a href="#"><span class="icon16 minia-icon-list-3"></span></a>
        </div>
        
         <? include "/../includes/menuLateral.inc" ?>  
        
        <!--Body content-->
        <div id="content" class="clearfix">
            <div class="contentwrapper"><!--Content wrapper-->

                <div class="heading">

                    <h3>Feiras</h3>                    

                    <div class="resBtnSearch">
                        <a href="#"><span class="icon16 icomoon-icon-search-3"></span></a>
                    </div>

                    <div class="search">

                        <form id="searchform" action="">
                            <input type="text" id="tipue_search_input" class="top-search" placeholder="Pesquise" />
                            <input type="submit" id="tipue_search_button" class="search-btn" value=""/>
                        </form>
                
                    </div><!-- Fim search -->
                    
                    <ul class="breadcrumb">
                        <li>Você está aqui:</li>
                        <li>
                            <a href="<?= BASE?>" class="tip" title="Clique aqui para ir para página inicial">
                                <span class="icon16 "><img src="<?= BASE?>/webfiles/css/img/home3.png" /></span>
                            </a> 
                            <span class="divider">
                                <span class="icon16 "><img src="<?= BASE?>/webfiles/css/img/seta.png" /></span>
                            </span>
                        </li>
                        <li class="active">Feiras</li>
                    </ul>

                </div><!-- Fim .heading-->

                <!--Corpo da página  -->
                <!-- tudo deverá ser construído a partir daqui -->
               <div class="row-fluid">
                
                       <div class="span9">

                            <div class="box">

                                <div class="title">

                                    <h4>
                                        <span>Inserindo Artesões a fera</span>
                                    </h4>
                                    
                                </div>
                                <div class="content">
                                   
                                    <form class="form-horizontal" id="form-validate" method="post" action="<?=BASE ?>/feiras/addArtesaos/" >
                                        
                                        
                                        <div class="form-row row-fluid">
                                            <div class="span6">
                                                <div class="row-fluid">
                                                    <label class="form-label span3" for="id">ID</label>
                                                    <input readonly="readonly" value="<? echo $view_parametros_lista["ID_FEIRA"]; ?>" class="span9" id="id" name="id_feira" type="text" />
                                                </div>
                                            </div>
                                        </div>
                                        
                                        
                                      
                                        
                                        <div class="form-row row-fluid">
                                            <div class="span12">
                                                <div class="row-fluid">
                                                    <label class="form-label span6" for="endereco">Escolha os artesãos que vão participar da Feira.</label>
                                                </div>
                                                <div class="leftBox">
                                                   
                                                    <div class="searchBox"><input title="Procurar por Nome ou por CPF."  type="text" id="box1Filter" class="searchField tip" placeholder="Procurar..."/><button id="box1Clear" type="button" class="btn tip" title="Clique aqui para apagar o campo de pesquisa."><span class="icon12  icomoon-icon-cancel-3"></span></button></div>
                                                    
                                                    <select name="artesao_lista[]" id="box1View" multiple="multiple" class="multiple nostyle" style="height:300px;">
                                                        <?php foreach ($view_artesao_lista as $artesaos): ?>
                                                        <option value="<? echo $artesaos["CPF"]; ?>"><? echo $artesaos["NOME"]. " - " . $artesaos["CPF"] ; ?></option>
                                                        <? endforeach; ?>  
                                                        
                                                        <?php foreach ($view_dados_lista as $index => $valor): ?>
                                                        <option value="<? echo $index; ?>"><? echo $valor . " - "  . $index;  ?></option>
                                                        <? endforeach; ?>  
                                                               
                                                    </select>
                                                    <br/>
                                                    <span id="box1Counter" class="count"></span>
                                                    
                                                 <div class="dn"><select id="box1Storage" name="box1Storage" class="nostyle"></select></div>
                                            </div>
                                                    
                                                <div class="dualBtn">
                                                    
                                                    <button title="Clique aqui para passar o item selecionado" id="to2" type="button" class="btn tip" ><span class="icon12 minia-icon-arrow-right-3 "></span></button>
                                                    <button title="Clique aqui para passar todos os itens selecionados" id="allTo2" type="button" class="btn tip" ><span class="icon12 iconic-icon-last tip"></span></button>
                                                    <button title="Clique aqui para passar o item selecionado" id="to1" type="button" class="btn marginT5 tip"><span class="icon12 minia-icon-arrow-left-3 tip"></span></button>
                                                    <button title="Clique aqui para passar todos os itens selecionados" id="allTo1" type="button"class="btn marginT5 tip" ><span class="icon12 iconic-icon-first tip"></span></button>
                                                    
                                                </div>
                                                    
                                                <div class="rightBox">
                                                    <div class="searchBox"><input title="Procurar por Nome ou por CPF." type="text" id="box2Filter" class="searchField tip" placeholder="Procurar..." /><button id="box2Clear"  type="button" class="btn tip" title="Clique aqui para apagar o campo de pesquisa." ><span class="icon12  icomoon-icon-cancel-3"></span></button></div>
                                                    <select name="artesao_lista_selecionado[]" id="box2View" multiple="multiple" class="multiple nostyle" style="height:300px;"></select><br/>
                                                    <span id="box2Counter" class="count"></span>
                                                    
                                                    <div class="dn"><select id="box2Storage" class="nostyle"></select></div>
                                                </div>

                                            </div> 
                                        </div>
                                        
                                          
                                       <div class="form-row row-fluid">
                                            <div class="span12">
                                                <div class="row-fluid">
                                                    <div class="form-actions">
                                                    <div class="span3"></div>
                                                    <div class="span9 controls">
                                                        <button type="submit" class="btn btn-info  ">Cadastrar</button>
                                                        <button title="Ao clicar aqui irá resetar todo o formulário" type="reset" class="tip btn btn-danger right">Resetar</button>
                                                    </div>
                                                    </div>
                                                </div>
                                            </div> 
                                        </div>
                                        
                                        
                                    </form>
                                 
                                </div>

                            </div><!-- Fim .box -->

                        </div><!-- Fim .span12 -->

                    </div><!-- Fim .row-fluid -->


                </div><!--Fim corpo da página -->

                

            
            </div><!-- Fim contentwrapper -->
        </div><!-- Fim #content -->
    
    </div><!-- Fim #wrapper -->
    
    <!--  javascript
    ================================================== -->
      <?include "/../includes/javascript.inc" ?>  
    
  
    </body>

</html>


